<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Once 修饰符</title>
</head>
<body>
<div id="app">
  <form action="https://www.baidu.com/s" method="get">
    <input type="text" name="wd" value="百度一下">
    <input type="submit" value="提交"  @click="clicked">
    <input type="button" value="提交"  @click="clicked">
    <input type="submit" value="提交"  @click.prevent.once="clicked">
  </form>
</div>
<script src="../../../../../js/vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data(){
            return {

            }
        },
        methods:{
          clicked(){
            console.log("点击了 提交 按钮");
          }
        }
    })

    app.mount("#app")
</script>
</body>
</html>